//
//  ZHSheetTopCell.m
//  sc-cyan-ios
//
//  Created by lj on 2017/12/27.
//  Copyright © 2017年 greenbuilding. All rights reserved.
//

#import "ZHSheetTopCell.h"

@interface ZHSheetTopCell ()

//头部文本
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
//删除视图的背景
@property (weak, nonatomic) IBOutlet UIView *delView;

@end

@implementation ZHSheetTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(delAction:)];
    [self.delView addGestureRecognizer:tap];
}

//赋值文本
- (void)setText:(NSString *)text{
    _text = text;
    
    self.titleLable.text = text;
    
}
// 删除竖向列表手势出发事件
- (void)delAction:(UITapGestureRecognizer *)sender {
    
    self.delBlock(self);
}

@end
